export function getAttribute(data: any, prop: string) {
    const obj: { [key: string]: any } = data as Object;
    return obj[prop];
}

export function setAttribute(data: any, prop: string, value: any) {
    const obj: { [key: string]: any } = data as Object;
    obj[prop] = value;
}
